import { NgModule } from '@angular/core';
import { SharedModule } from '@shared/shared.module';
import { MarketTriggerRoutingModule } from './market-trigger-routing.module';
import { TriggerListComponent } from './trigger-list/trigger-list.component';
import { TriggerEditComponent } from './trigger-edit/trigger-edit.component';
import { TriggerDetailComponent } from './trigger-detail/trigger-detail.component';
import { TriggerStaticsListComponent } from './trigger-statics-list/trigger-statics-list.component';
import { TriggerStaticsService } from '@core/routes-services/trigger-statics.service';

const COMPONENTS = [
  TriggerListComponent,
  TriggerStaticsListComponent];
const COMPONENTS_NOROUNT = [
  TriggerEditComponent,
  TriggerDetailComponent];

@NgModule({
  imports: [
    SharedModule,
    MarketTriggerRoutingModule
  ],
  declarations: [
    ...COMPONENTS,
    ...COMPONENTS_NOROUNT
  ],
  entryComponents: COMPONENTS_NOROUNT,
  providers:[
    TriggerStaticsService
  ]
})
export class MarketTriggerModule { }
